package com.ztesoft.web.common.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class DmPartitionColumnsArg {
    private String pk_name = "COLUMN_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DmPartitionColumnsCriteria> oredCriteria;

    public DmPartitionColumnsArg() {
        oredCriteria = new ArrayList<DmPartitionColumnsCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DmPartitionColumnsCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DmPartitionColumnsCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DmPartitionColumnsCriteria or() {
    	DmPartitionColumnsCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DmPartitionColumnsCriteria createCriteria() {
    	DmPartitionColumnsCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DmPartitionColumnsCriteria createCriteriaInternal() {
    	DmPartitionColumnsCriteria criteria = new DmPartitionColumnsCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DmPartitionColumnsCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DmPartitionColumnsCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DmPartitionColumnsCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DmPartitionColumnsCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DmPartitionColumnsCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmPartitionColumnsCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmPartitionColumnsCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DmPartitionColumnsCriterion(condition, value1, value2));
        }

        public DmPartitionColumnsCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DmPartitionColumnsCriteria) this;
        }
        public DmPartitionColumnsCriteria andColumnIdIsNull() {
            addCriterion("COLUMN_ID is null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdIsNotNull() {
            addCriterion("COLUMN_ID is not null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdEqualTo(Integer value) {
            addCriterion("COLUMN_ID =", value, "COLUMN_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdNotEqualTo(Integer value) {
            addCriterion("COLUMN_ID <>", value, "COLUMN_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdGreaterThan(Integer value) {
            addCriterion("COLUMN_ID >", value, "COLUMN_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("COLUMN_ID >=", value, "COLUMN_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdLessThan(Integer value) {
            addCriterion("COLUMN_ID <", value, "COLUMN_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdLessThanOrEqualTo(Integer value) {
            addCriterion("COLUMN_ID <=", value, "COLUMN_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdLike(Integer value) {
            addCriterion("COLUMN_ID like ", value, "COLUMN_ID", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdNotLike(Integer value) {
            addCriterion("COLUMN_ID  not like ", value, "COLUMN_ID", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdLeftLike(Integer value) {
            addCriterion("COLUMN_ID like ", value, "COLUMN_ID", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdNotLeftLike(Integer value) {
            addCriterion("COLUMN_ID  not like ", value, "COLUMN_ID", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdRightLike(Integer value) {
            addCriterion("COLUMN_ID like ", value, "COLUMN_ID", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdNotRightLike(Integer value) {
            addCriterion("COLUMN_ID  not like ", value, "COLUMN_ID", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdIn(List<Integer> values) {
            addCriterion("COLUMN_ID  in ", values, "COLUMN_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdNotIn(List<Integer> values) {
            addCriterion("COLUMN_ID not in ", values, "COLUMN_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdBetween(Integer value1, Integer value2) {
            addCriterion("COLUMN_ID between ", value1, value2, "COLUMN_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnIdNotBetween(Integer value1, Integer value2) {
            addCriterion("COLUMN_ID not between ", value1, value2, "COLUMN_ID");
            return (DmPartitionColumnsCriteria) this;
        }
        public DmPartitionColumnsCriteria andSourceDataIdIsNull() {
            addCriterion("SOURCE_DATA_ID is null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdIsNotNull() {
            addCriterion("SOURCE_DATA_ID is not null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID =", value, "SOURCE_DATA_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdNotEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <>", value, "SOURCE_DATA_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdGreaterThan(Integer value) {
            addCriterion("SOURCE_DATA_ID >", value, "SOURCE_DATA_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID >=", value, "SOURCE_DATA_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdLessThan(Integer value) {
            addCriterion("SOURCE_DATA_ID <", value, "SOURCE_DATA_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdLessThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_DATA_ID <=", value, "SOURCE_DATA_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdNotLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdNotLeftLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID like ", value, "SOURCE_DATA_ID", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdNotRightLike(Integer value) {
            addCriterion("SOURCE_DATA_ID  not like ", value, "SOURCE_DATA_ID", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID  in ", values, "SOURCE_DATA_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdNotIn(List<Integer> values) {
            addCriterion("SOURCE_DATA_ID not in ", values, "SOURCE_DATA_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID between ", value1, value2, "SOURCE_DATA_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andSourceDataIdNotBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_DATA_ID not between ", value1, value2, "SOURCE_DATA_ID");
            return (DmPartitionColumnsCriteria) this;
        }
        public DmPartitionColumnsCriteria andFuncIdIsNull() {
            addCriterion("FUNC_ID is null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdIsNotNull() {
            addCriterion("FUNC_ID is not null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdEqualTo(Integer value) {
            addCriterion("FUNC_ID =", value, "FUNC_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdNotEqualTo(Integer value) {
            addCriterion("FUNC_ID <>", value, "FUNC_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdGreaterThan(Integer value) {
            addCriterion("FUNC_ID >", value, "FUNC_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("FUNC_ID >=", value, "FUNC_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdLessThan(Integer value) {
            addCriterion("FUNC_ID <", value, "FUNC_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdLessThanOrEqualTo(Integer value) {
            addCriterion("FUNC_ID <=", value, "FUNC_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdLike(Integer value) {
            addCriterion("FUNC_ID like ", value, "FUNC_ID", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdNotLike(Integer value) {
            addCriterion("FUNC_ID  not like ", value, "FUNC_ID", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdLeftLike(Integer value) {
            addCriterion("FUNC_ID like ", value, "FUNC_ID", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdNotLeftLike(Integer value) {
            addCriterion("FUNC_ID  not like ", value, "FUNC_ID", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdRightLike(Integer value) {
            addCriterion("FUNC_ID like ", value, "FUNC_ID", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdNotRightLike(Integer value) {
            addCriterion("FUNC_ID  not like ", value, "FUNC_ID", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdIn(List<Integer> values) {
            addCriterion("FUNC_ID  in ", values, "FUNC_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdNotIn(List<Integer> values) {
            addCriterion("FUNC_ID not in ", values, "FUNC_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdBetween(Integer value1, Integer value2) {
            addCriterion("FUNC_ID between ", value1, value2, "FUNC_ID");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncIdNotBetween(Integer value1, Integer value2) {
            addCriterion("FUNC_ID not between ", value1, value2, "FUNC_ID");
            return (DmPartitionColumnsCriteria) this;
        }
        public DmPartitionColumnsCriteria andFuncTypeIsNull() {
            addCriterion("FUNC_TYPE is null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeIsNotNull() {
            addCriterion("FUNC_TYPE is not null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeEqualTo(Integer value) {
            addCriterion("FUNC_TYPE =", value, "FUNC_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeNotEqualTo(Integer value) {
            addCriterion("FUNC_TYPE <>", value, "FUNC_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeGreaterThan(Integer value) {
            addCriterion("FUNC_TYPE >", value, "FUNC_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("FUNC_TYPE >=", value, "FUNC_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeLessThan(Integer value) {
            addCriterion("FUNC_TYPE <", value, "FUNC_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeLessThanOrEqualTo(Integer value) {
            addCriterion("FUNC_TYPE <=", value, "FUNC_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeLike(Integer value) {
            addCriterion("FUNC_TYPE like ", value, "FUNC_TYPE", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeNotLike(Integer value) {
            addCriterion("FUNC_TYPE  not like ", value, "FUNC_TYPE", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeLeftLike(Integer value) {
            addCriterion("FUNC_TYPE like ", value, "FUNC_TYPE", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeNotLeftLike(Integer value) {
            addCriterion("FUNC_TYPE  not like ", value, "FUNC_TYPE", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeRightLike(Integer value) {
            addCriterion("FUNC_TYPE like ", value, "FUNC_TYPE", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeNotRightLike(Integer value) {
            addCriterion("FUNC_TYPE  not like ", value, "FUNC_TYPE", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeIn(List<Integer> values) {
            addCriterion("FUNC_TYPE  in ", values, "FUNC_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeNotIn(List<Integer> values) {
            addCriterion("FUNC_TYPE not in ", values, "FUNC_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeBetween(Integer value1, Integer value2) {
            addCriterion("FUNC_TYPE between ", value1, value2, "FUNC_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andFuncTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("FUNC_TYPE not between ", value1, value2, "FUNC_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }
        public DmPartitionColumnsCriteria andColumnSeqIsNull() {
            addCriterion("COLUMN_SEQ is null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqIsNotNull() {
            addCriterion("COLUMN_SEQ is not null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqEqualTo(Integer value) {
            addCriterion("COLUMN_SEQ =", value, "COLUMN_SEQ");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqNotEqualTo(Integer value) {
            addCriterion("COLUMN_SEQ <>", value, "COLUMN_SEQ");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqGreaterThan(Integer value) {
            addCriterion("COLUMN_SEQ >", value, "COLUMN_SEQ");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqGreaterThanOrEqualTo(Integer value) {
            addCriterion("COLUMN_SEQ >=", value, "COLUMN_SEQ");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqLessThan(Integer value) {
            addCriterion("COLUMN_SEQ <", value, "COLUMN_SEQ");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqLessThanOrEqualTo(Integer value) {
            addCriterion("COLUMN_SEQ <=", value, "COLUMN_SEQ");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqLike(Integer value) {
            addCriterion("COLUMN_SEQ like ", value, "COLUMN_SEQ", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqNotLike(Integer value) {
            addCriterion("COLUMN_SEQ  not like ", value, "COLUMN_SEQ", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqLeftLike(Integer value) {
            addCriterion("COLUMN_SEQ like ", value, "COLUMN_SEQ", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqNotLeftLike(Integer value) {
            addCriterion("COLUMN_SEQ  not like ", value, "COLUMN_SEQ", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqRightLike(Integer value) {
            addCriterion("COLUMN_SEQ like ", value, "COLUMN_SEQ", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqNotRightLike(Integer value) {
            addCriterion("COLUMN_SEQ  not like ", value, "COLUMN_SEQ", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqIn(List<Integer> values) {
            addCriterion("COLUMN_SEQ  in ", values, "COLUMN_SEQ");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqNotIn(List<Integer> values) {
            addCriterion("COLUMN_SEQ not in ", values, "COLUMN_SEQ");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqBetween(Integer value1, Integer value2) {
            addCriterion("COLUMN_SEQ between ", value1, value2, "COLUMN_SEQ");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnSeqNotBetween(Integer value1, Integer value2) {
            addCriterion("COLUMN_SEQ not between ", value1, value2, "COLUMN_SEQ");
            return (DmPartitionColumnsCriteria) this;
        }
        public DmPartitionColumnsCriteria andColumnNameIsNull() {
            addCriterion("COLUMN_NAME is null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameIsNotNull() {
            addCriterion("COLUMN_NAME is not null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameEqualTo(String value) {
            addCriterion("COLUMN_NAME =", value, "COLUMN_NAME");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameNotEqualTo(String value) {
            addCriterion("COLUMN_NAME <>", value, "COLUMN_NAME");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameGreaterThan(String value) {
            addCriterion("COLUMN_NAME >", value, "COLUMN_NAME");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameGreaterThanOrEqualTo(String value) {
            addCriterion("COLUMN_NAME >=", value, "COLUMN_NAME");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameLessThan(String value) {
            addCriterion("COLUMN_NAME <", value, "COLUMN_NAME");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameLessThanOrEqualTo(String value) {
            addCriterion("COLUMN_NAME <=", value, "COLUMN_NAME");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameLike(String value) {
            addCriterion("COLUMN_NAME like ", value, "COLUMN_NAME", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameNotLike(String value) {
            addCriterion("COLUMN_NAME  not like ", value, "COLUMN_NAME", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameLeftLike(String value) {
            addCriterion("COLUMN_NAME like ", value, "COLUMN_NAME", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameNotLeftLike(String value) {
            addCriterion("COLUMN_NAME  not like ", value, "COLUMN_NAME", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameRightLike(String value) {
            addCriterion("COLUMN_NAME like ", value, "COLUMN_NAME", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameNotRightLike(String value) {
            addCriterion("COLUMN_NAME  not like ", value, "COLUMN_NAME", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameIn(List<String> values) {
            addCriterion("COLUMN_NAME  in ", values, "COLUMN_NAME");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameNotIn(List<String> values) {
            addCriterion("COLUMN_NAME not in ", values, "COLUMN_NAME");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameBetween(String value1, String value2) {
            addCriterion("COLUMN_NAME between ", value1, value2, "COLUMN_NAME");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnNameNotBetween(String value1, String value2) {
            addCriterion("COLUMN_NAME not between ", value1, value2, "COLUMN_NAME");
            return (DmPartitionColumnsCriteria) this;
        }
        public DmPartitionColumnsCriteria andColumnTypeIsNull() {
            addCriterion("COLUMN_TYPE is null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeIsNotNull() {
            addCriterion("COLUMN_TYPE is not null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeEqualTo(String value) {
            addCriterion("COLUMN_TYPE =", value, "COLUMN_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeNotEqualTo(String value) {
            addCriterion("COLUMN_TYPE <>", value, "COLUMN_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeGreaterThan(String value) {
            addCriterion("COLUMN_TYPE >", value, "COLUMN_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeGreaterThanOrEqualTo(String value) {
            addCriterion("COLUMN_TYPE >=", value, "COLUMN_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeLessThan(String value) {
            addCriterion("COLUMN_TYPE <", value, "COLUMN_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeLessThanOrEqualTo(String value) {
            addCriterion("COLUMN_TYPE <=", value, "COLUMN_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeLike(String value) {
            addCriterion("COLUMN_TYPE like ", value, "COLUMN_TYPE", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeNotLike(String value) {
            addCriterion("COLUMN_TYPE  not like ", value, "COLUMN_TYPE", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeLeftLike(String value) {
            addCriterion("COLUMN_TYPE like ", value, "COLUMN_TYPE", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeNotLeftLike(String value) {
            addCriterion("COLUMN_TYPE  not like ", value, "COLUMN_TYPE", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeRightLike(String value) {
            addCriterion("COLUMN_TYPE like ", value, "COLUMN_TYPE", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeNotRightLike(String value) {
            addCriterion("COLUMN_TYPE  not like ", value, "COLUMN_TYPE", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeIn(List<String> values) {
            addCriterion("COLUMN_TYPE  in ", values, "COLUMN_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeNotIn(List<String> values) {
            addCriterion("COLUMN_TYPE not in ", values, "COLUMN_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeBetween(String value1, String value2) {
            addCriterion("COLUMN_TYPE between ", value1, value2, "COLUMN_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andColumnTypeNotBetween(String value1, String value2) {
            addCriterion("COLUMN_TYPE not between ", value1, value2, "COLUMN_TYPE");
            return (DmPartitionColumnsCriteria) this;
        }
        public DmPartitionColumnsCriteria andStateIsNull() {
            addCriterion("STATE is null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "STATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "STATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "STATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "STATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "STATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "STATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateLike(String value) {
            addCriterion("STATE like ", value, "STATE", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateNotLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateLeftLike(String value) {
            addCriterion("STATE like ", value, "STATE", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateNotLeftLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateRightLike(String value) {
            addCriterion("STATE like ", value, "STATE", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateNotRightLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateIn(List<String> values) {
            addCriterion("STATE  in ", values, "STATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in ", values, "STATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between ", value1, value2, "STATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between ", value1, value2, "STATE");
            return (DmPartitionColumnsCriteria) this;
        }
        public DmPartitionColumnsCriteria andStateDateIsNull() {
            addCriterion("STATE_DATE is null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateIsNotNull() {
            addCriterion("STATE_DATE is not null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateEqualTo(String value) {
            addCriterion("STATE_DATE =", value, "STATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateNotEqualTo(String value) {
            addCriterion("STATE_DATE <>", value, "STATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateGreaterThan(String value) {
            addCriterion("STATE_DATE >", value, "STATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE_DATE >=", value, "STATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateLessThan(String value) {
            addCriterion("STATE_DATE <", value, "STATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateLessThanOrEqualTo(String value) {
            addCriterion("STATE_DATE <=", value, "STATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateNotLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateLeftLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateNotLeftLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateRightLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateNotRightLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateIn(List<String> values) {
            addCriterion("STATE_DATE  in ", values, "STATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateNotIn(List<String> values) {
            addCriterion("STATE_DATE not in ", values, "STATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateBetween(String value1, String value2) {
            addCriterion("STATE_DATE between ", value1, value2, "STATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andStateDateNotBetween(String value1, String value2) {
            addCriterion("STATE_DATE not between ", value1, value2, "STATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }
        public DmPartitionColumnsCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateEqualTo(String value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateNotEqualTo(String value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateGreaterThan(String value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateLessThan(String value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateLessThanOrEqualTo(String value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateNotLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateLeftLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateNotLeftLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateRightLike(String value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateNotRightLike(String value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateIn(List<String> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateNotIn(List<String> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateBetween(String value1, String value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

        public DmPartitionColumnsCriteria andCreateDateNotBetween(String value1, String value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (DmPartitionColumnsCriteria) this;
        }

    }

    public static class DmPartitionColumnsCriteria extends GeneratedCriteria {

        protected DmPartitionColumnsCriteria() {
            super();
        }
    }

    public static class DmPartitionColumnsCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DmPartitionColumnsCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DmPartitionColumnsCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DmPartitionColumnsCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DmPartitionColumnsCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DmPartitionColumnsCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DmPartitionColumnsCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}